package com.ten.common.core.entity;

import com.baomidou.mybatisplus.annotation.*;
import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Data;

import java.io.Serializable;
import java.time.LocalDateTime;
import java.util.List;

/**
 * 课程科目(Subject)实体类
 *
 * @author makejava
 * @since 2022-12-07 22:56:24
 */
@Data
@TableName("edu_subject")
public class EduSubject implements Serializable {
    private static final long serialVersionUID = 158311858391636586L;
    /**
     * 课程类别ID
     */
    @TableId
    private String id;
    /**
     * 类别名称
     */
    private String title;
    /**
     * 父ID
     */
    private String parentId;
    /**
     * 课程分类的状态 1 正常  0  禁用
     */
    private String statusId;
    /**
     * 备注
     */
    private String remark;
    /**
     * 排序字段
     */
    private Integer sort;
    /**
     * 创建时间
     */
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    @TableField(fill = FieldFill.INSERT)
    private LocalDateTime gmtCreate;
    /**
     * 更新时间
     */
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    @TableField(fill = FieldFill.INSERT_UPDATE)
    private LocalDateTime gmtModified;

    @TableField(exist = false)
    private List<EduSubject> children;


}

